//1.导入 vue-router 包
import VueRouter from 'vue-router'

import Home from './components/tabbar/Home.vue'
import my from './components/tabbar/my.vue'
import qqq from './components/tabbar/qqq.vue'
import www from './components/tabbar/www.vue'

//导入对应的路由组件


//3.创建路由对象
var router = new VueRouter({
    routes:[ //配置路由规则
       {path:'/' ,redirect: '/home'},
       {path:'/home',component:Home},
       {path:'/my',component:my},
       {path:'/qqq',component:qqq},
       {path:'/www',component:www}
    ],
    linkActiveClass:'mui-active'//覆盖默认路由高亮的类，默认的类叫做router-link-active
})
//把路由对象暴露出去
export default router